package com.tencent.wxpay.demo.util;

import com.tencent.wxpay.demo.common.Constants;

/**
 * jsTicket工具类
 */
public class JSTicket {
    public static void initJsTicket() {
        //1.获取access_token
        Constants.accessToken = WeixinUtil.getAccessToken(Constants.APPID, Constants.APPSECRET);
        //2 获取ticket
        Constants.jsTicket = WeixinUtil.getJsTicket(Constants.accessToken.getToken());
    }
}
